package it.polimi.traveldream.web;

import it.polimi.traveldream.CustompackageDTO;
import it.polimi.traveldream.PackageDTO;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;


@ManagedBean(name="risultatiPacchettoBean")
@SessionScoped
public class RisultatiPacchettoBean{
	
	@ManagedProperty(value="#{ricercaBean}")
	private RicercaBean ricercaBean;
	
		
	public RisultatiPacchettoBean(){
		
	}

	public RicercaBean getRicercaBean() {
		return ricercaBean;
	}

	public void setRicercaBean(RicercaBean ricercaBean) {
		this.ricercaBean = ricercaBean;
	}
	
	public ArrayList<CustompackageDTO> show(){
		return ricercaBean.getCustomPackage();
	}
  
	public ArrayList<PackageDTO> getOfferte(){
		
		return ricercaBean.getOfferte();
		
	}
	
	
	

}
